package com.wangce.bean;

import org.springframework.format.annotation.DateTimeFormat;

import com.wangce.bean.Detail;
import java.util.Date;

/**
 * ClassName: Order
 * Description:
 * date: 2021/11/15 10:02
 *
 * @author 凡人
 * @since JDK 1.8
 */
public class Order {
    private Integer id;//主键
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date orderDate;//订单日期
    private Long orderId;//订单ID
    private String client;//客户名称
    private Integer rank;//优先级
    private Double orderPrice;//总金额
    private String content;//备注
    private String linkman;//联系人
    private String site;//地址
    private String tel;//电话
    private Integer preparedId;//制表人工号
    private String preparedBy;//制表人
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date preparedDate;//指制表日期
    private Integer detailId;//明细表id
    private String image;//附件

    private Detail detail;//明细表

    public Order(Integer id, Date orderDate, Long orderId, String client, Integer rank, Double orderPrice, String content, String linkman, String site, String tel, Integer preparedId, String preparedBy, Date preparedDate, Integer detailId, String image, Detail detail) {
        this.id = id;
        this.orderDate = orderDate;
        this.orderId = orderId;
        this.client = client;
        this.rank = rank;
        this.orderPrice = orderPrice;
        this.content = content;
        this.linkman = linkman;
        this.site = site;
        this.tel = tel;
        this.preparedId = preparedId;
        this.preparedBy = preparedBy;
        this.preparedDate = preparedDate;
        this.detailId = detailId;
        this.image = image;
        this.detail = detail;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", orderDate=" + orderDate +
                ", orderId=" + orderId +
                ", client='" + client + '\'' +
                ", rank=" + rank +
                ", orderPrice=" + orderPrice +
                ", content='" + content + '\'' +
                ", linkman='" + linkman + '\'' +
                ", site='" + site + '\'' +
                ", tel='" + tel + '\'' +
                ", preparedId=" + preparedId +
                ", preparedBy='" + preparedBy + '\'' +
                ", preparedDate=" + preparedDate +
                ", detailId=" + detailId +
                ", detail=" + detail +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getOrderDate() {
        return orderDate;
    }

    public void setOrderDate(Date orderDate) {
        this.orderDate = orderDate;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public String getClient() {
        return client;
    }

    public void setClient(String client) {
        this.client = client;
    }

    public Integer getRank() {
        return rank;
    }

    public void setRank(Integer rank) {
        this.rank = rank;
    }

    public Double getOrderPrice() {
        return orderPrice;
    }

    public void setOrderPrice(Double orderPrice) {
        this.orderPrice = orderPrice;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getLinkman() {
        return linkman;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public void setLinkman(String linkman) {
        this.linkman = linkman;
    }

    public String getSite() {
        return site;
    }

    public void setSite(String site) {
        this.site = site;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public Integer getPreparedId() {
        return preparedId;
    }

    public void setPreparedId(Integer preparedId) {
        this.preparedId = preparedId;
    }

    public String getPreparedBy() {
        return preparedBy;
    }

    public void setPreparedBy(String preparedBy) {
        this.preparedBy = preparedBy;
    }

    public Date getPreparedDate() {
        return preparedDate;
    }

    public void setPreparedDate(Date preparedDate) {
        this.preparedDate = preparedDate;
    }

    public Integer getDetailId() {
        return detailId;
    }

    public void setDetailId(Integer detailId) {
        this.detailId = detailId;
    }

    public Detail getDetail() {
        return detail;
    }

    public void setDetail(Detail detail) {
        this.detail = detail;
    }

    public Order() {
    }

}
